﻿using System;

namespace Pfz.RemoteGaming
{
	/// <summary>
	/// Argument passed as parameter to RemoteGameClient.ExceptionThrown and RemoteGameListener.ExceptionThrown.
	/// </summary>
	[Serializable]
	public sealed class RemoteGameExceptionEventArgs:
		EventArgs
	{
		/// <summary>
		/// Gets the Exception that was thrown.
		/// </summary>
		public Exception Exception { get; internal set; }

		/// <summary>
		/// Set this to true if you don't want the exception to be rethrown.
		/// </summary>
		public bool WasHandled { get; set; }
	}
}
